package com.gzist.elderlyserviceplatform.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzist.elderlyserviceplatform.entity.dto.InfoNewsPageDTO;
import com.gzist.elderlyserviceplatform.entity.po.InfoNews;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzist.elderlyserviceplatform.entity.vo.InfoNewsVo;
import org.apache.ibatis.annotations.Param;

/**
 * 资讯信息表 Mapper 接口
 */
public interface InfoNewsMapper extends BaseMapper<InfoNews> {

    Page<InfoNewsVo> queryPage(@Param("page") Page<InfoNewsVo> page, @Param("infoNewsPageDTO") InfoNewsPageDTO infoNewsPageDTO);

    void updateViewCount(@Param("newsId") String newsId, @Param("viewCount") Integer viewCount);
}
